Skip to content

[4/4 messagequeue] Add Vitess vschema and two-shard vtcombo suite - #696

Open
behinddwalls wants to merge 1 commit into
preetam/mq-tenant-wiringfrom
preetam/mq-tenant-vitess
Open

[4/4 messagequeue] Add Vitess vschema and two-shard vtcombo suite#696
behinddwalls wants to merge 1 commit into
preetam/mq-tenant-wiringfrom
preetam/mq-tenant-vitess

Conversation

@behinddwalls

@behinddwalls behinddwalls commented Sep 8, 2026

Copy link
Copy Markdown
Collaborator

Summary

Why?

The tenant column is the production vindex. Without a VSchema and a two-shard suite, the schema change is unproven on Vitess.

What?

  • Add production xxhash VSchema for every queue table keyed on tenant.
  • Add a vtcombo integration suite that publishes and consumes across two shards (receive loop bound to the test context).

Admin CLI tenant flags shipped with the schema PR because ctl/lib SQL is coupled to the new primary keys.

Test Plan

Vitess suite is Docker-based; run with:
./tool/bazel test //test/integration/extension/messagequeue/mysql/vitess:go_default_test --strategy=TestRunner=local

Issues

## Summary

### Why?

The tenant column is the production vindex. Without a VSchema and a two-shard suite, the schema change is unproven on Vitess.

### What?

- Add production xxhash VSchema for every queue table keyed on tenant.
- Add a vtcombo integration suite that publishes and consumes across two shards (receive loop bound to the test context).

Admin CLI tenant flags shipped with the schema PR because ctl/lib SQL is coupled to the new primary keys.

## Test Plan

Vitess suite is Docker-based; run with:
`./tool/bazel test //test/integration/extension/messagequeue/mysql/vitess:go_default_test --strategy=TestRunner=local`

Co-authored-by: Cursor <cursoragent@cursor.com>
@behinddwalls
behinddwalls force-pushed the preetam/mq-tenant-vitess branch from 0b69e19 to 4980b66 Compare September 10, 2026 18:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants